<?
$textlogout=">>>>>>>>Logouted >>>>>".date("Y-m-d / H:i:s");

$dbsql->query("update ".$GLOBALS['first_table']."tblchat set iStatus=0,  cText=concat(cText,'".$username."++".$textlogout."$$') where iStatus!=0 and iChatId=$roomid");

$namesp=isset($_COOKIE[_NAMESITESUPPORT])? $_COOKIE[_NAMESITESUPPORT]: $_SESSION['name'];
$name=!empty($namesp)? $namesp: $name;

set_Cookie(_NAMECOOKIELOGINGUEST,"logouted");

header("location: guest.php?name=".$name);
exit();


?>